let crypto
try{
    crypto = require('crypto')
}catch(err){
    console.log('不支持crypto')
}

let obj = crypto.createHash('md5')
obj.update('123456')
console.log(obj.digest('hex'))